<?php

declare(strict_types=1);

namespace app\file\validate\admin;

use sheep\validate\Backend;
use app\admin\model\file\FileGroup;

class File extends Backend
{
    protected $rule = [
        'filename' => 'require',
        'group' => 'require'
    ];

    protected $message  =   [
        'filename.require'     => '文件名称必须填写',
        'group.require'     => '请选择要移动的分组',
    ];

    protected $scene = [
        'rename'  =>  ['filename'],
        'move'  =>  ['group'],
    ];
}
